 apiready = function(){
        api.parseTapmode();
    }
var toast = new auiToast();
function showDefault(type,str){
        switch (type) {
            case "success":
                toast.success({
                    title:str,
                    duration:2000
                });
            case "fail":
                toast.fail({
                    title:str,
                    duration:2000
                });
            case "custom":
                toast.custom({
                    title:str,
                    html:'<i class="aui-iconfont aui-icon-laud"></i>',
                    duration:2000
                });
            case "loading":
                toast.loading({
                    title:str,
                    duration:2000
                });
            default:
                // statements_def
        }
}
function showPopup(id) {
	popup.init({
		frameBounces: true, //当前页面是否弹动，（主要针对安卓端）
		location: id, //位置，top(默认：顶部中间),top-left top-right,bottom,bottom-left,bottom-right
		buttons: [{
			//					image: '../image/share/wx.png',
			text: '我的记录',
			value: 'oiler_infoNotes.jsp' //可选
		}, {
			//					image: '../image/share/wx-circle.png',
			text: '个人等级',
			value: 'oiler_infoWorker.jsp'
		}, {
			//					image: '../image/share/qq.png',
			text: '消息通知',
			value: 'oiler_infoNews.jsp'
		}],
	}, function(ret) {
		$(location).attr('href', ret.buttonValue);
	})
}